package cn.wolfcode.wolf2w.business.service;

import cn.wolfcode.wolf2w.business.api.domain.Note;
import cn.wolfcode.wolf2w.business.query.NoteQuery;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * 旅游日记Service接口
 *
 * @author 王南棕
 * @date 2025-09-15
 */
public interface INoteService extends IService<Note>{
    /**
    * 分页
    * @param qo
    * @return
    */
    IPage<Note> queryPage(NoteQuery qo);

    List<Note> viewnnumTop3(Long destId);

    Map<String, Object> collect(Long noteId);

    void addNoteAndContent(Note note);

    Map<String, Object> viewnumIncr(Long noteId);

    Boolean isUserFavor(Long nid, Long uid);

    Map<String, Object> star(Long nid);

    void noteStatisHashPersistence();

}
